//  loads Barro-Lee data and fixes some country codes
// 	from Barro Lee 2013, version 3.0 at http://www.barrolee.com
//		Barro, Robert and Jong-Wha Lee, 2013, "A New Data Set of Educational Attainment in the World, 1950-2010." Journal of Development Economics, vol 104, pp.184-198.

cd "~/Documents/econ/research/current/cognitive/estimation/data"

use BL_v3_MF1564, clear
rename WBcode countrycode
replace countrycode = "MDA" if country == "Republic of Moldova"
replace countrycode = "SRB" if country == "Serbia"
keep countrycode year yr_sch*
order countrycode
sort countrycode year
saveold BarroLee15, replace version(11)
